home *** CD-ROM | disk | FTP | other *** search
Wrap
SSSSSSSSPPPPRRRR2222((((3333SSSS)))) SSSSSSSSPPPPRRRR2222((((3333SSSS)))) NNNNAAAAMMMMEEEE SSSSSSSSPPPPRRRR2222, DDDDSSSSPPPPRRRR2222 - Performs symmetric rank 2 update of a real symmetric packed matrix SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS Single precision Fortran: CCCCAAAALLLLLLLL SSSSSSSSPPPPRRRR2222 ((((_u_p_l_o,,,, _n,,,, _a_l_p_h_a,,,, _x,,,, _i_n_c_x,,,, _y,,,, _i_n_c_y,,,, _a_p)))) C/C++: ####iiiinnnncccclllluuuuddddeeee <<<<ssssccccssssllll____bbbbllllaaaassss....hhhh>>>> vvvvooooiiiidddd sssssssspppprrrr2222 ((((cccchhhhaaaarrrr _u_p_l_o,,,, ffffllllooooaaaatttt *_n,,,, ffffllllooooaaaatttt _a_l_p_h_a,,,, ffffllllooooaaaatttt *_x,,,, iiiinnnntttt _i_n_c_x,,,, ffffllllooooaaaatttt *_y,,,, iiiinnnntttt _i_n_c_y,,,, ffffllllooooaaaatttt *_a_p))));;;; Double precision Fortran: CCCCAAAALLLLLLLL DDDDSSSSPPPPRRRR2222 ((((_u_p_l_o,,,, _n,,,, _a_l_p_h_a,,,, _x,,,, _i_n_c_x,,,, _y,,,, _i_n_c_y,,,, _a_p)))) C/C++: ####iiiinnnncccclllluuuuddddeeee <<<<ssssccccssssllll____bbbbllllaaaassss....hhhh>>>> vvvvooooiiiidddd ddddsssspppprrrr2222 ((((cccchhhhaaaarrrr _u_p_l_o,,,, ddddoooouuuubbbblllleeee *_n,,,, ddddoooouuuubbbblllleeee _a_l_p_h_a,,,, ddddoooouuuubbbblllleeee *_x,,,, iiiinnnntttt _i_n_c_x,,,, ddddoooouuuubbbblllleeee *_y,,,, iiiinnnntttt _i_n_c_y,,,, ddddoooouuuubbbblllleeee *_a_p))));;;; IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN These routines are part of the SCSL Scientific Library and can be loaded using either the ----llllssssccccssss or the ----llllssssccccssss____mmmmpppp option. The ----llllssssccccssss____mmmmpppp option directs the linker to use the multi-processor version of the library. When linking to SCSL with ----llllssssccccssss or ----llllssssccccssss____mmmmpppp, the default integer size is 4 bytes (32 bits). Another version of SCSL is available in which integers are 8 bytes (64 bits). This version allows the user access to larger memory sizes and helps when porting legacy Cray codes. It can be loaded by using the ----llllssssccccssss____iiii8888 option or the ----llllssssccccssss____iiii8888____mmmmpppp option. A program may use only one of the two versions; 4-byte integer and 8-byte integer library calls cannot be mixed. The C and C++ prototypes shown above are appropriate for the 4-byte integer version of SCSL. When using the 8-byte integer version, the variables of type iiiinnnntttt become lllloooonnnngggg lllloooonnnngggg and the <<<<ssssccccssssllll____bbbbllllaaaassss____iiii8888....hhhh>>>> header file should be included. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN These routines perform the following symmetric rank 2 operation: _A <- _a_l_p_h_a _x_y_T + _a_l_p_h_a _y_x_T + _A where _x_T is the transpose of _x, _y_T is the transpose of _y, _a_l_p_h_a is a real scalar, _x and _y are _n-element vectors, and _A is an _n-by-_n symmetric packed matrix. PPPPaaaaggggeeee 1111 SSSSSSSSPPPPRRRR2222((((3333SSSS)))) SSSSSSSSPPPPRRRR2222((((3333SSSS)))) See the NOTES section of this man page for information about the interpretation of the data types described in the following arguments. This routine has the following arguments: _u_p_l_o Character. (input) Specifies whether the upper or lower triangular part of matrix _A is packed into the array argument _a_p, as follows: _u_p_l_o= 'U' or 'u': the upper triangular part of _A is being supplied in the argument _a_p. _u_p_l_o= 'L' or 'l': the lower triangular part of _A is being supplied in the argument _a_p. _n Integer. (input) Specifies the order of matrix _A. _n >= 0. _a_l_p_h_a Scalar alpha. (input) SSSSSSSSPPPPRRRR2222: Single precision. DDDDSSSSPPPPRRRR2222: Double precision. _x Array of dimension 1+(_n-1) * |_i_n_c_x|. (input) SSSSSSSSPPPPRRRR2222: Single precision array. DDDDSSSSPPPPRRRR2222: Double precision array. _i_n_c_x Integer. (input) Increment for the elements of _x. _i_n_c_x must not be 0. _y Array of dimension 1+(_n-1) * |_i_n_c_y|. (input) SSSSSSSSPPPPRRRR2222: Single precision array. DDDDSSSSPPPPRRRR2222: Double precision array. _i_n_c_y Integer. (input) Increment for the elements of _y. _i_n_c_y must not be 0. _a_p Array of dimension (_n(_n+1))/2 . (input and output) SSSSSSSSPPPPRRRR2222: Single precision array. DDDDSSSSPPPPRRRR2222: Double precision array. Before entry with _u_p_l_o = 'U' or 'u', array _a_p must contain the upper triangular part of the symmetric matrix packed sequentially, column-by-column, so that _a_p(1) contains _A(1,1), _a_p(2) contains _A(1,2), _a_p(3) contains _A(2,2), and so on. On exit, the upper triangular part of the updated matrix overwrites array _a_p. Before entry with _u_p_l_o = 'L' or 'l', array _a_p must contain the lower triangular part of the symmetric matrix packed sequentially, column-by-column, so that _a_p(1) contains _A(1,1), _a_p(2) contains _A(2,1), _a_p(3) contains _A(3,1), and so on. On exit, the lower triangular part of the updated matrix overwrites array _a_p. PPPPaaaaggggeeee 2222 SSSSSSSSPPPPRRRR2222((((3333SSSS)))) SSSSSSSSPPPPRRRR2222((((3333SSSS)))) NNNNOOOOTTTTEEEESSSS SSSSSSSSPPPPRRRR2222/DDDDSSSSPPPPRRRR2222 is a Level 2 Basic Linear Algebra Subprogram (Level 2 BLAS). When working backward (_i_n_c_x < 0 or _i_n_c_y < 0), this routine starts at the end of the vector and moves backward, as follows: _x(1-_i_n_c_x * (_n-1)), _x(1-_i_n_c_x * (_n-2)) , ..., _x(1) _y(1-_i_n_c_y * (_n-1)), _y(1-_i_n_c_y * (_n-2)) , ..., _y(1) DDDDaaaattttaaaa TTTTyyyyppppeeeessss The following data types are described in this documentation: TTTTeeeerrrrmmmm UUUUsssseeeedddd DDDDaaaattttaaaa ttttyyyyppppeeee Fortran: Array dimensioned _n xxxx((((nnnn)))) Character CCCCHHHHAAAARRRRAAAACCCCTTTTEEEERRRR Integer IIIINNNNTTTTEEEEGGGGEEEERRRR (IIIINNNNTTTTEEEEGGGGEEEERRRR****8888 for ----llllssssccccssss____iiii8888[[[[____mmmmpppp]]]]) Single precision RRRREEEEAAAALLLL Double precision DDDDOOOOUUUUBBBBLLLLEEEE PPPPRRRREEEECCCCIIIISSSSIIIIOOOONNNN C/C++: Array dimensioned _n xxxx[[[[_n]]]] Character cccchhhhaaaarrrr Integer iiiinnnntttt (lllloooonnnngggg lllloooonnnngggg for ----llllssssccccssss____iiii8888[[[[____mmmmpppp]]]]) Single precision ffffllllooooaaaatttt Double precision ddddoooouuuubbbblllleeee Note that you can explicitly declare multidimensional C/C++ arrays provided that the array dimensions are swapped with respect to the Fortran declaration (e.g., xxxx[[[[nnnn]]]][[[[mmmm]]]] in C/C++ versus xxxx((((mmmm,,,,nnnn)))) in Fortran). To avoid a compiler type mismatch error in C++ (or a compiler warning message in C), however, the array should be cast to a pointer of the appropriate type when passed as an argument to a SCSL routine. SSSSEEEEEEEE AAAALLLLSSSSOOOO IIIINNNNTTTTRRRROOOO____SSSSCCCCSSSSLLLL(3S), IIIINNNNTTTTRRRROOOO____BBBBLLLLAAAASSSS2222(3S), CCCCHHHHPPPPRRRR2222(3S) PPPPaaaaggggeeee 3333 SSSSSSSSPPPPRRRR2222((((3333SSSS)))) SSSSSSSSPPPPRRRR2222((((3333SSSS)))) IIIINNNNTTTTRRRROOOO____CCCCBBBBLLLLAAAASSSS(3S) for information about using the C interface to Fortran 77 Basic Linear Algebra Subprograms (legacy BLAS) set forth by the Basic Linear Algebra Subprograms Technical Forum. PPPPaaaaggggeeee 4444